//
//  STTimerManagerView.h
//  YiYueHairdresser
//
//  Created by zhouzhouzhou on 2018/10/12.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, TimerSelDayType) {
    ServiceTimer,
    MondayTimer,
    TuesdayTimer,
    WednesdayTimer,
    ThursdayTimer,
    FridayTimer,
    SaturdayTimer,
    SundayTimer
};

@class STTimerManagerView;
@protocol STTimerManagerViewDelegate<NSObject>
-(void)timerMagSelTimer;
-(void)timerMagSelAutoDayTimer;
-(void)timerMagSaveTimer:(STDoorServiceSetInfoModel *)tiemrDic;
-(void)timerMagOpenTheDoor:(UISwitch *)sender;
@end

@interface STTimerManagerView : UIView<UITableViewDelegate,UITableViewDataSource, UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,
UICollectionViewDelegate>{
    UITableView *timerTableView;
    NSArray * arrTimerDays;
    UIButton * surBtn;
    bool isEnable;
}

@property(weak,nonatomic)id<STTimerManagerViewDelegate> delegate;
@property(strong,nonatomic)NSDictionary * serviceTimerDic;

-(void)setServiceDayType:(TimerSelDayType)dayType WithDic:(NSDictionary *)dic;
-(void)setMyTimerManagerViewWithTimerData:(NSDictionary *)timerDic;
-(void)setUnEnable:(BOOL)enable;
//-(void)setMyTimerManagerView;

@end
